package hn.cch.feature.stream;


import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class LambdaTest {


    @Test
    public void test(){

        List<String> list = new ArrayList<>(Arrays.asList("0", "1", "2", "3"));
        List<String> l = list.stream().filter(p -> p.equals("2")).collect(Collectors.toList());


    }


}
